x=list(range(10))
def swap(x):
    list_len=len(x)
    if list_len<2:
        return x
    t=x[0]
    x[0]=x[list_len-1]
    x[list_len-1]=t
    return x
a1=swap(x)
print(a1)

x=list(range(10))

x=[1,4,9,16,25]
def move_list(x):
    list_len=len(x)
    t=x[list_len-1]
    x[1:]=x[0:list_len-1]
    x[0]=t
    return x
a2=move_list(x)
print(a2)